<?php if($oForm): ?>
  <form onsubmit="jQuery.ajax({type:'POST',dataType:'html',data:jQuery(this).serialize(),success:function(data, textStatus){jQuery('#ca_pnsm_message_panel').html(data);},url:'<?php echo url_for('ca_add_node',array('parent_node_id' => $iParentNodeId)); ?>'}); return false;" action="<?php echo url_for('ca_add_node',array('parent_node_id' => $iParentNodeId)); ?>" method="post">
    <?php if(sfConfig::get('app_caPropelTreePlugin_sPartialFormAddNode',false)): ?>
      <?php include_partial(sfConfig::get('app_caPropelTreePlugin_sPartialFormRenameNode'),array('oForm' => $oForm)); ?>
    <?php else: ?>
      <?php echo $oForm; ?>
    <?php endif; ?>
      <input id="save" type="submit" value="Save" />
  </form>
<?php endif; ?>
